package com.itheima.date8;

import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.temporal.Temporal;
import java.time.temporal.TemporalField;
import java.time.temporal.TemporalUnit;

public class Demo09 {

    public static void main(String[] args) {
        /*LocalDate now = LocalDate.now();
        LocalDate birthdayofDang = LocalDate.of(1921, 7, 23);
        */

        LocalTime now = LocalTime.now();
        LocalTime mixiTime = LocalTime.of(12, 10, 30);
        Duration between = Duration.between(mixiTime, now);
        System.out.println(between);
        System.out.println(between.getSeconds());
        System.out.println(between.toSeconds());
        System.out.println(between.toHours());
        System.out.println(between.toMinutes());
        System.out.println(between.toNanos());

    }
}
